/************************************************************************************
* IDbMaintainer.h                                                                                 *
*                                                                                   *
* Copyright (C) 2011 Varuna L Amachi                                                *
*                                                                                   *
* This program is free software; you can redistribute it and/or modify              *
* it under the terms of the GNU General Public License as published by              *
* the Free Software Foundation; either version 2 of the License, or any             *
* later version.                                                                    *
*                                                                                   *
* This program is distributed in the hope that it will be useful, but               *
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY        *
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for       *
* more details. You should have received a copy of the GNU General Public           *
* License along with this program; if not, write to the Free Software Foundation,   *
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA                       *
*                                                                                   *
*************************************************************************************/

#ifndef IDBMAINTAINER_H
#define IDBMAINTAINER_H

class QSqlDatabase;
class QString;


class IDbMaintainer {
protected:
    IDbMaintainer() {}
public:
    virtual bool maintainCachingTables(QSqlDatabase *database = NULL)     = 0;
    virtual bool createCollectionTable(QSqlDatabase *database = NULL)     = 0;
    virtual bool createHistoryTable(QSqlDatabase *database = NULL)        = 0;
    virtual bool createPlaylistInfoTable(QSqlDatabase *database = NULL)   = 0;
    virtual bool createPlaylistTable(QSqlDatabase *database = NULL)       = 0;
    virtual bool createRecentAdditionsTable(QSqlDatabase *database = NULL)= 0;
    virtual bool createSettingsTable(QSqlDatabase *database = NULL)       = 0;
    virtual bool createSchema(QSqlDatabase *database = NULL)              = 0;

//    virtual bool isDbExists(QString dbName)                               = 0;
    virtual bool initDb(QString dbName)                                   = 0;
    virtual QString dbType()                                              = 0;
};


#endif // IDBMAINTAINER_H
